package router

import (
	"{{.ProjectName}}/internal/controller"

	"gitee.com/wu-jin-feng/fgin"
	"github.com/gin-gonic/gin"
    "github.com/google/wire"
)

var ProviderSet = wire.NewSet(NewRouter)

type Router struct {
	F          *fgin.Fgin
	Router     *gin.Engine
	GreeterCtr *controller.GreeterController
}

func NewRouter(f *fgin.Fgin, router *gin.Engine, greeterCtr *controller.GreeterController) error {
	r := &Router{
		F:          f,
		Router:     router,
		GreeterCtr: greeterCtr,
	}
	r.InitGreeter()
	return nil
}
